import myAxios from '@/utils/requset'
// 用户登录
export const userLoginSerivce = ({ username, password }) =>
  myAxios.post('/user/login', { username, password })

// 用户注册
export const userResgisterService = ({ username, password }) =>
  myAxios.post('/user/register', { username, password })

// 获取用户信息
export const userGetInfoService = () => myAxios.get('/user/info')

// 更新用户信息
export const userUpdateInfoService = (data) =>
  myAxios.put('/user/updateInfo', data)

// 更新用户密码
export const userUpdatePwdService = (data) =>
  myAxios.put('/user/updatePwd', data)
